<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<head>
</head>

<body>
<f:view>

	<f:loadBundle basename="mensajes" var="msgs" />
	<h1><h:outputText value="#{msgs['realizarPago.titulo']}" /></h1>
	<h:messages errorStyle="color: red;" />

	<h:form>
		<h:panelGrid columns="2">
			
			<h:outputLabel for="nroFact" value="#{msgs['realizarPago.codigo']}" />
			<h:inputText id="nroFact" value="#{RealizarPagoBean.codigoPago}" required="true" label="#{msgs['realizarPago.codigo']}" />
			
			<h:outputLabel for="cuitCliente" value="#{msgs['realizarPago.cuenta']}" />
			<h:inputText id="cuitCliente" value="#{RealizarPagoBean.cuenta}" required="true" label="#{msgs['realizarPago.cuenta']}" />
			
			<h:outputLabel for="precioTotal" value="#{msgs['realizarPago.importe']}" />
			<h:inputText id="precioTotal" value="#{RealizarPagoBean.importe}" required="true" label="#{msgs['realizarPago.importe']}">
				<f:convertNumber maxFractionDigits="2" />
			</h:inputText>
			
			<h:panelGroup>
				<h:commandButton id="btnGuardar" value="#{msgs['boton.guardar']}" action="#{RealizarPagoBean.realizarPago}" />
			</h:panelGroup>
			
		</h:panelGrid>
	</h:form>
</f:view>
</body>
</html>